package dao;

import org.apache.ibatis.annotations.Param;
import pojo.User;

import java.util.List;

public interface UserDao {

    //定义行为
    //查询用户
    //多参数入参
    List<User> findAll(@Param("user") User user , @Param("offset") int offset, @Param("pageSize") int pageSize);

    int addUser(User user);

    User findUserById(int id);

    int updateUser(User user);

    int deleteUserById(int id);


    int count(User user);

    //查询用户
    //增加用户
    //删除用户
    //修改用户
}
